package cn.intertion.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

public interface WXService {


    String bindWX(HttpServletRequest req) throws Exception;

    String login( String code,  String state)throws Exception;

    void out(int width, int height, int len, HttpServletRequest request, HttpServletResponse response, String uid) throws IOException;

    Integer check(String str);

    String getJsSdkTicket(String t) throws NoSuchAlgorithmException, UnsupportedEncodingException;

    boolean checkUser(String name,String pswd);

    void out2(String uid, HttpServletResponse resp) throws IOException;

    Integer check2(String s);

    String sendShortmessage(String p) throws Exception;


    String check3(String s) throws Exception;

    String addUser(HttpServletRequest req) throws Exception;

    String regOrAdd(HttpServletRequest req) throws Exception;
}
